import java.util.Scanner;

public class scanner {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入第一个老人的年龄：");
        int old1 = sc.nextInt();
        System.out.print("请输入第二个老人的年龄：");
        int old2 = sc.nextInt();
        System.out.print("请输入第三个老人的年龄：");
        int old3 = sc.nextInt();

        int result = Math.max(old1, Math.max(old2, old3));
        System.out.println("result = " + result);
    }
}
